/**
 * Author:yuiop
 * Date:2022/8/29 15:38
 */
package com.devops.admin.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.devops.admin.mapper.DOSDynamicSQLMapper;
import com.devops.admin.service.DOSDynamicSQLService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DOSDynamicSQLServiceImpl extends ServiceImpl<DOSDynamicSQLMapper,Object> implements DOSDynamicSQLService {

    @Override
    @DS("#dbName")
    public List<Map<String,Object>> executeSql(String dbName,String sql) {
        return baseMapper.executeSql(sql);
    }

}
